<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <title>User Account - Bootstrap Admin</title>
    
 
      <link rel="stylesheet" href="./layui/css/layui.css">
 
<style>
   
 
</style>
<body>



<button id="buttonId">点击模拟发送请求</button>



<script src="./layui/layui.all.js"></script>
<script src="./js/jquery-1.7.2.min.js"></script>
  <script type="text/javascript">
      $("#buttonId").click(function(){
          var xmlData = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><Request><smsType>1</smsType><fromNum>测试测试</fromNum></Request>";
          $.ajax({
          url: "/selectBill/receiverSMS",
              contentType:"application/xml", //  发送信息至服务器时的内容编码类型
          type: "post",
              async:  true,
              // 发送到服务器的数据。
              data: xmlData,

              success: function (result) {
              window.close();

          },
          error : function(jqXHR, textStatus, errorThrown) {
              alert("ajax错误");

          }

      })
      })
	  
  </script>

  </body>
</html>
